import Vue from 'vue';
import App from './App.vue';
import router from './router/router';
import store from './store';

import ElementUI from 'element-ui';
import { mockXHR } from './mock';
import Vue2OrgTree from 'vue2-org-tree';

import 'element-ui/lib/theme-chalk/index.css';

Vue.config.productionTip = false;

if (process.env.NODE_ENV == 'development') {
	mockXHR();
}

Vue.use(ElementUI);
Vue.use(Vue2OrgTree);

new Vue({
	router,
	store,
	render: (h) => h(App)
}).$mount('#app');
